'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/login', controller.login.login);
  router.post('/register', controller.login.register);
  router.get('/getcaptcha', controller.login.getcaptcha);
  router.get('/getuser', controller.login.getuser);
  router.resources('muse', '/muse', controller.muse);
  router.post("/upload",controller.login.upload);
  
};
